package org.mozhu.zufang.system.auth.service;

import org.mozhu.mboot.core.data.BaseService;
import org.mozhu.zufang.system.auth.entity.UserAuth;
import org.mozhu.zufang.system.auth.repository.UserAuthRepository;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Transactional
@Service("userAuthService")
public class UserAuthServiceImpl extends BaseService<UserAuth, Long> implements UserAuthService {

    protected UserAuthRepository getBaseRepository() {
        return (UserAuthRepository) baseRepository;
    }

    @Override
    public UserAuth findByUserId(Long userId) {
        return getBaseRepository().findByUserId(userId);
    }

}
